package com.crpc.core.transport.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author wzy
 * @version 1.0
 * @description: 回复服务提供方的响应
 * @date 2023/9/26 14:12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class CrpcResponse {
    //请求的Id
    private long requestId;
    //序列化的方式
    private byte serializeType;
    //压缩的类型
    private byte compressType;
    private long timeStamp;
    //响应码 1成功 2异常
    private byte code;
    //响应的载体
    private Object body;
}
